Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip github actions that haven't been configured #68

Merged
merged 1 commit into from
Sep 1, 2023

Conversation

rmarscher
Copy link
Contributor

I noticed github was trying to run a few actions even though I hadn't configured the necessary secrets and vars. I think this update should keep them from running until you have configured your project.

@timothymiller
Copy link
Owner

Cool stuff. Casual users should enjoy having only a subset of the actions run when first setting up their project.

LGTM!

@timothymiller timothymiller merged commit d15269a into timothymiller:main Sep 1, 2023
@rmarscher
Copy link
Contributor Author

@timothymiller Doh... except secrets can't be used in conditionals. actions/runner#520 (comment)

So sorry about that. I see there are some workarounds. https://docs.github.com/en/actions/security-guides/encrypted-secrets#using-encrypted-secrets-in-a-workflow

It might be easiest to use vars for certain non-sensitive settings instead of secrets since they would be available in the conditional expression. Sorry again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants